php split string into array of characters

133

php split string into array of characters -

//Split int char array
$chars = str_split($str);

//Loop each char
foreach($chars as $char)
{
    // your code
}

Comments

Submit
0 Comments